using System.Diagnostics;

namespace HumanElement.Xna
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main(string[] args)
        {
#if(DEBUG)
            var testGame = new GameTestHarness();

            bool res = false;

            Debug.Write("Executing [CreateCamera] Test...");
            res &= testGame.CreateCameraTest();
            Debug.WriteLine((res) ? "SUCCESS" : "FAILED");

            Debug.Write("Executing [CreateStage] Test...");
            res &= testGame.CraeteStageTest();
            Debug.WriteLine((res) ? "SUCCESS" : "FAILED");

            Debug.Write("Executing [CreateCrate] Test...");
            res &= testGame.CreateCrateTest();
            Debug.WriteLine((res) ? "SUCCESS" : "FAILED");

            Debug.Write("Executing [CreateActor] Test...");
            res &= testGame.CreateActorTest();
            Debug.WriteLine((res) ? "SUCCESS" : "FAILED");

            Debug.Write("Executing [GamePlay] Test...");
            res &= testGame.GamePlayTest();
            Debug.WriteLine((res) ? "SUCCESS" : "FAILED");
#else

            using (var game = new GameEngine("XRunner"))
            {
                game.Run();
            }
#endif
        }
    }
}